package com.hmdp.utils;

public class RedisConstants {
    public static final long BLOOM_FILTER_EXPECTED_INSERT_NUM = 1000;
    public static final double BLOOM_FILTER_FPP = 0.01;
    public static final String LOGIN_CODE_KEY = "login:code:";
    public static final String ORDER_KEY = "order";
    public static final Long LOGIN_CODE_TTL = 2L;
    public static final String LOGIN_USER_KEY = "login:token:";
    public static final Long LOGIN_USER_TTL = 30L;

    public static final Long CACHE_NULL_TTL = 2L;

    public static final Long CACHE_SHOP_TTL = 30L;
    public static final String CACHE_SHOP_KEY = "cache:shop:";
    public static final String CACHE_SHOP_TYPE_KEY = "cache:shop-type";
    public static final String LOCK_SHOP_KEY = "lock:shop:";
    public static final Long LOCK_SHOP_TTL = 10L;

    public static final String SECKILL_STOCK_KEY = "seckill:stock:";
    //博客id-为当前博客点赞过的用户id
    public static final String BLOG_LIKED_KEY = "blog:liked:";
    public static final String FEED_KEY = "feed:";
    public static final String SHOP_GEO_KEY = "shop:geo:";
    public static final String USER_SIGN_KEY = "sign:";
    //当前用户关注的所有用户id
    public static final String FOLLOW_USER_KEY = "follow:";
    public static final String SENDCODE_SENDTIME_KEY ="sms:sendtime:";

    public static final String ONE_LEVERLIMIT_KEY ="limit:onelevel:";

    public static final String TWO_LEVERLIMIT_KEY ="limit:twolevel:";

}
